package com.test;

class Father{
    void eat(){
        System.out.println("爸爸吃肉");
    }

}
class Son extends Father{

    void eat(){
        super.eat();
        System.out.println("儿子吃屎");
    }
}
public class Study_OOP {
    public static void main(String[] args) {
        Father p1 = new Son();
        Father p2 = new Father();
        p1.eat();
        p2.eat();
    }
}
